<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<link rel="shortcut icon" href="${ctx}/resource/image/logo2.png">
<div class="header navbar navbar-inverse navbar-fixed-top">
<!-- BEGIN TOP NAVIGATION BAR -->
	<div class="navbar-inner">
		<div class="container-fluid">
			<div class="row-fluid">
			<div class="span2"></div>
				<!-- BEGIN LOGO -->
			<div class="span8" >
			<a class="brand" href="${ctx}/index.html" style="margin-top: -3px">
				<img style="height:28px;" src="${ctx}/resource/image/logo1.png" alt="logo" />
			</a>
			<!-- END LOGO -->
			<!-- BEGIN HORIZANTAL MENU -->
			<div class="navbar hor-menu hidden-phone hidden-tablet">
				<div class="navbar-inner">
					<ul class="nav">
						<li class="visible-phone visible-tablet">
							<!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->
							<form class="sidebar-search">
								<div class="input-box">
									<a href="javascript:;" class="remove"></a>
									<input type="text" placeholder="Search..." />
									<input type="button" class="submit" value=" " />
								</div>
							</form>
							<!-- END RESPONSIVE QUICK SEARCH FORM -->
						</li>
					</ul>
				</div>
			</div>
			<!-- END HORIZANTAL MENU -->
	
			<!-- BEGIN RESPONSIVE MENU TOGGLER -->
			<a href="javascript:;" class="btn-navbar collapsed" data-toggle="collapse" data-target=".nav-collapse">
			<img src="${ctx}/resource/image/menu-toggler.png" alt="" />
			</a>
			<!-- END RESPONSIVE MENU TOGGLER -->
	
			<!-- BEGIN TOP NAVIGATION MENU -->
			<ul class="nav pull-right">
				<!-- BEGIN USER LOGIN DROPDOWN -->
				<li class="dropdown user">
					
				<c:choose>
				   <c:when test="${!empty sessionScope.LOGINED_USER.uid}">
				   <a href="#" class="dropdown-toggle" data-toggle="dropdown">
			   		<img style="width:29px;height:29px"  alt="" src="${ctx}${sessionScope.LOGINED_USER.userImage}" />&nbsp;&nbsp;${sessionScope.LOGINED_USER.name}
					<i class="icon-angle-down"></i>
					</a>
					<ul class="dropdown-menu">
						<li><a href="${ctx}/user/updateUserPage.do"><i class="icon-user"></i>个人中心</a></li>
						<c:if test="${sessionScope.LOGINED_USER.type == 2}">
							<li><a href="${ctx}/user/userManagement.do?currentPage=0"><i class="icon-user"></i>用户管理</a></li>
						</c:if>	
						<li><a href="${ctx}/user/logout.do"><i class="icon-key"></i>退出</a></li>
					</ul>
				   </c:when>
				   <c:otherwise>
				   <a href="#" class="dropdown-toggle" data-toggle="dropdown">
			   		<img style="width:29px;height:29px" alt="" src="${ctx}/resource/image/u1.jpg" />
					<i class="icon-angle-down"></i>
					</a>
					<ul class="dropdown-menu">
						<li><a href="${ctx}/user/loginPage.do"><i class="icon-key"></i>登录</a></li>
					</ul>
				   </c:otherwise>
				</c:choose>
			</ul>
			</div>
			</div>
		</div>
	</div> <!-- END TOP NAVIGATION BAR -->
</div>